<template>
    <view>
{{username}}

    </view>
</template>
<script>
export default {
   data(){
       return{
           username:"test",
           params:{
               top:10
           }
       }
   },
   onShow(){
      //验证登录
      
      this.checkloginfun();
   },
   onLoad(){
       this.request({
           url:this.BaseUrl+"/WeatherForecast",
           data:this.params
           }).then(result=>{
             console.log(result);

          });
       }
       ,onPullDownRefresh()
       {
           console.log("触发下拉方法")
           this.getlist();
       },
      methods:{
           getlist()
           {
                console.log("触发getlist方法")
           }
       }
}
</script>

<style>

</style>
